<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link rel="StyleSheet" title="Default" href="../../css/commons/estilo.css" type="text/css" />
		<script type="text/javascript" src="../../js/lib/jquery-1.7.1.min.js"></script>
		<script type="text/javascript" src="../../js/lib/jquery.validate.js"></script>
		<script type="text/javascript">
			$(document).ready(function() {
				$(".formLogin").validate({
					rules : {
						EditLogin : {
							required : true
						}
					}
				});
			});
			function auth() {
				if(!(($("#EdLogin").val() == "fulano") && ($("#EdSenha").val() == "123456") )) {
					alert("Dados de acesso inválidos");
				}else{
					window.location.href ="../user/mensagem.html";
				}
			}
		</script>
		<title>WebDroid Chat - Login</title>
	</head>
	<body>
		<div class="chat">
			<h1>WebDroid Chat</h1>
			<form class="formLogin" id="form1" name="form1" method="post" action="javascript:auth();" >
				<p>
					<label>&nbsp;Login: </label>
					<input required  class="entradas" type="text" name="EditLogin" id="EdLogin" />
				</p>
				<p>
					<label>Senha: </label>
					<input  required class="entradas" type="password" class="required" name="EdSenha" id="EdSenha" />
				</p>
				<p>
					<label><a href="HtmlRegister2.html">Não sou cadastrado</a></label>
					<input id="button" type="submit" name="BtLogar" id="BtLogar" value="Entrar"/>
				</p>
			</form>
		</div>
	</body>
</html>
